package org.example.com.entity;

import org.example.com.annotation.MRPAnnotations;

import java.util.HashMap;
import java.util.Map;

/**
 * 主生产计划
 */
@MRPAnnotations.MRPEntity("主生产计划")
public class MasterProductionSchedule {
    @MRPAnnotations.MRPField(description = "最终产品及其需求数量")
    private Map<Item, Integer> productionPlan = new HashMap<>();

    public void addRequirement(Item item, int quantity) {
        productionPlan.put(item, quantity);
    }

    public Map<Item, Integer> getProductionPlan() {
        return productionPlan;
    }
}